var Define = require("../../lib/Define.js")

var _orderProcessId = 0

Page({
  data:{
    images:[]
  },
  onLoad:function(options){
    var self = this

    _orderProcessId = options.orderProcessId

    wx.request({
      url: Define.value.baseUrl+"/app/order/processimages?orderProcessId="+_orderProcessId,
      data: {},
      method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
      // header: {}, // 设置请求的 header
      success: function(res){
        // success
        var data = res.data
        
        self.setData({
          images:data.data
        })
      },
      fail: function(res) {
        // fail
      },
      complete: function(res) {
        // complete
      }
    })
  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  }
})